<?php
require("frmCookie.php");

?>
<html>
	<head>
    	<?php
		require("frmHeader.php");
		?>
	</head>
	<?php
	switch($_GET[iOpcion])
	{
		case 1:
		{
			$url = "orden.php?iOpcion=1";
	?>
	<body onLoad="window.open('<?php echo $url;?>','frmOrden','width=330,height=630,scrollbars=yes,menubar=no,titlebar=no,resizable=no','')">
	<?php
			break;
		}
		case 2:
		{
			$url = "orden.php?iOpcion=3&imei=" . $_POST[txtImei];
	?>
	<body onLoad="window.open('<?php echo $url;?>','frmOrden','width=330,height=630,scrollbars=yes,menubar=no,titlebar=no,resizable=no','')">
	<?php
			break;
		}
		case 3:
		{
			$url = "OrdenDanado.php?iOpcion=3&imei=" . $_GET[imei];
	?>
	<body onLoad="window.open('<?php echo $url;?>','frmOrden','width=330,height=630,scrollbars=yes,menubar=yes,titlebar=yes,resizable=yes','')">
	<?php
			break;
		}
		default:
		{
	?>
	<body>
	<?php
			break;
		}
	}
	?>
    	<table cellpadding="0" cellspacing="0" align="center" class="tablaPrincipal">
        	<tr>
            	<td align="center">
                	<?php
					require("frmSession.php");
					?>
                </td>
            </tr>
            <tr>
            	<td align="center">
                	<?php
					require("frmTitulo.php");
					?>
                </td>
            </tr>
            <tr>
            	<td height="20">&nbsp;
                	
                </td>
            </tr>
            <tr>
            	<td align="center">
                	<table cellpadding="0" cellspacing="0" align="center" class="menuPrincipal">
                    	<tr>
                        	<td>
								<?php
                                require("frmMenu.php");
                                ?>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
            	<td height="20">&nbsp;
                	
                </td>
            </tr>
            <tr>
                <td align="center">
                	<table cellpadding="0" cellspacing="0" align="center" class="tituloPantalla">
                    	<tr>
                        	<td align="center">
                            	<p class="texto" align="left">Bienvenido <?php echo $_SESSION['nombre']; ?> a Bombus Exil.</p>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
             <tr>
            	<td height="20">&nbsp;
                	
                </td>
            </tr>
            <tr>
                <td align="center">
                	<table cellpadding="0" cellspacing="0" align="center" class="contenedorPrincipal">
                    	<tr>
                        	<td align="center">&nbsp;
                                
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
	</body>
</html>